﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarriorRush.GameDynamics.Effects
{
    public class Hasting  : GameEffect
    {
         public Hasting() : base(true)
        {
            Type = EffectType.Haste;
        }

        public override void ModifyStats(CharacterClass character)
        {
            character.Stats.RushStat.Modify(Power);
            base.ModifyStats(character);
        }

        public override void RevertStats(CharacterClass character)
        {
            character.Stats.RushStat.Revert(Power);
            base.RevertStats(character);
        }

        public override GameEffect GetInstance(int power)
        {
            return new Hasting() { Power = power };
        }

    }
}
